package com.zuikaku.dao;

import com.zuikaku.pojo.User;
import com.zuikaku.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByNickName(@Param("nickName")String nickName);

    User getUserByUserNameAndPassword(@Param("userName")String userName,@Param("password")String password);

    UserVO getUserVoByPk(@Param("userId")Integer userId);
}